package com.wm.wmcrm.sys.controller;

import com.wm.wmcrm.sys.entity.SysDept;
import com.wm.wmcrm.sys.service.ISysDeptService;
import com.wm.wmcrm.sys.service.impl.SysDeptServiceImpl;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wm
 * @since 2023-03-07
 */

@Api(tags = "查询部门列表",value = "dept")
@RestController
@RequestMapping("/sys/sysDept")
public class SysDeptController {


    @Resource
    ISysDeptService sysDeptService;

    @GetMapping("/queryList")
    public List<SysDept> queryList(String deptName){
        return sysDeptService.queryList(deptName);
    }

}
